package com.market.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.market.feign.Agent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class test {
    @Autowired
    private Agent agent;

    @SaIgnore
    @PostMapping("/test")
    public String test(){
//        return "test";
        return agent.test();
    }
}
